package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-18
 */
@TableName("sys_transaction_record")
@Accessors(chain = true)
@Setter
@Getter
public class SysTransactionRecord extends Model<SysTransactionRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("personnel_id")
    private Long personnelId;

    @TableField("transaction_no")
    private String transactionNo;

    @TableField("shop_id")
    private Long shopId;

    private Integer state;

    @TableField("transaction_id")
    private String transactionId;

    private BigDecimal amount;

    @TableField("pay_time")
    private Date payTime;

    @TableField("create_time")
    private Date createTime;

    @TableField("purchase_time")
    private Integer purchaseTime;


//    public Long getId() {
//        return id;
//    }
//
//    public SysTransactionRecord setId(Long id) {
//        this.id = id;
//        return this;
//    }
//    public Long getPersonnelId() {
//        return personnelId;
//    }
//
//    public SysTransactionRecord setPersonnelId(Long personnelId) {
//        this.personnelId = personnelId;
//        return this;
//    }
//    public String getTransactionNo() {
//        return transactionNo;
//    }
//
//    public SysTransactionRecord setTransactionNo(String transactionNo) {
//        this.transactionNo = transactionNo;
//        return this;
//    }
//    public Long getShopId() {
//        return shopId;
//    }
//
//    public SysTransactionRecord setShopId(Long shopId) {
//        this.shopId = shopId;
//        return this;
//    }
//    public Integer getState() {
//        return state;
//    }
//
//    public SysTransactionRecord setState(Integer state) {
//        this.state = state;
//        return this;
//    }
//    public String getTransactionId() {
//        return transactionId;
//    }
//
//    public SysTransactionRecord setTransactionId(String transactionId) {
//        this.transactionId = transactionId;
//        return this;
//    }
//    public BigDecimal getAmount() {
//        return amount;
//    }
//
//    public SysTransactionRecord setAmount(BigDecimal amount) {
//        this.amount = amount;
//        return this;
//    }
//    public Date getPayTime() {
//        return payTime;
//    }
//
//    public SysTransactionRecord setPayTime(Date payTime) {
//        this.payTime = payTime;
//        return this;
//    }
//    public Date getCreateTime() {
//        return createTime;
//    }
//
//    public SysTransactionRecord setCreateTime(Date createTime) {
//        this.createTime = createTime;
//        return this;
//    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysTransactionRecord{" +
        "id=" + id +
        ", personnelId=" + personnelId +
        ", transactionNo=" + transactionNo +
        ", shopId=" + shopId +
        ", state=" + state +
        ", transactionId=" + transactionId +
        ", amount=" + amount +
                ", purchaseTime=" + purchaseTime +
        ", payTime=" + payTime +
        ", createTime=" + createTime +
        "}";
    }
}
